package com.ruyuan.gateway.server.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xx
 */
@RestController
@RequestMapping("/api/gateway")
public class GatewayController {

    @Value("${cloud.nacos.discovery.server-addr}")
    private String nacosServerAddr;

    @GetMapping("/nacos/serverAddr")
    public String nacosServerAddr() {
        return nacosServerAddr;
    }

}
